package com.kyub.spring.gears.introspect;

import org.apache.log4j.Logger;
import org.apache.log4j.Priority;

import java.util.Map;

/**
Log4j wrapper
 */
public class PrjLogger {



    private static void log(Object source,Priority level,String message){

        Logger.getLogger(source.getClass()).log(level,message);

    }


    public static void debug(Object source,String message){

        Logger.getLogger(source.getClass()).debug(message);
    }

    public static void warn(Object source,String message){
         Logger.getLogger(source.getClass()).warn(message);
    }

     public static void error(Object source,String message){
          Logger.getLogger(source.getClass()).error(message);
     }

}
